package com.example.demo.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Auther Created by l.wang on 2019/1/15.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DistributedLock {
    @AliasFor("lockName")
    String value() default "";

    String lockName() default "";
}
